<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
      xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
        <title></title>
    </h:head>
    <h:body>
        <composite:interface>
            <composite:attribute name="user" required="true"/>
        </composite:interface>
        
        <composite:implementation>
            <p:dialog closeOnEscape="true" showEffect="blind" hideEffect="blind" header="#{cc.attrs.user}" modal="false" resizable="false" widgetVar="userDiag">
            <h:panelGrid columns="2" cellpadding="3">
                    <h:outputLabel for="firstname" value="Ime:"/>
                        <h:outputText id="firstname" value="#{cc.attrs.user.firstname}"/>
                    <h:outputLabel for="lastname" value="Prezime:"/>
                        <h:outputText id="lastname" value="#{cc.attrs.user.lastname}"/>
                    <h:outputLabel for="email" value="Email:"/>
                        <h:outputText id="email" value="#{cc.attrs.user.email}"/>
                    <h:outputLabel for="username" value="Korisnicko ime:"/>
                        <h:outputText id="username" value="#{cc.attrs.user.username}"/>
                </h:panelGrid>
        </p:dialog>
        </composite:implementation>
    </h:body>
</html>

